﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections;

namespace BLL.wlBLL
{
    public class BLL_WebExample
    {
        DAL.wlDAL.DAL_WebExample example = new DAL.wlDAL.DAL_WebExample();
        /// <summary>
        /// 根据特定条件查商品信息
        /// </summary>
        /// <param name="htwhere">Hashtable</param>
        /// <returns>DataTable</returns>
        public DataTable GetWebExampleInfo(Hashtable htwhere)
        {
            return example.GetWebExampleInfo(htwhere);
        }

        /// <summary>
        /// 添加/修改/删除 网站实例
        /// </summary>
        /// <param name="mWebPic"></param>
        /// <param name="type">0 添加 1 修改 2 删除</param>
        /// <returns></returns>
        public int AddWebExample(WLong.Model.Rel_WebPicture mWebPic,int type)
        {
            return example.AddWebExample(mWebPic, type);
        }
        /// <summary>
        /// 根据特定条件查信息OtherCategoryGroup或OtherCategoryID
        /// </summary>
        /// <param name="htwhere">Hashtable</param>
        /// <returns>DataTable</returns>
        public DataTable GetTopActicleInfo(int Top, Hashtable htwhere)
        {
            return example.GetTopActicleInfo(Top, htwhere);
        }
        /// <summary>
        /// 根据特定条件查商品信息
        /// </summary>
        /// <param name="htwhere">Hashtable</param>
        /// <returns>DataTable</returns>
        public DataTable GetTopWebExampleInfo(int Top, Hashtable htwhere)
        {
            return example.GetTopWebExampleInfo(Top, htwhere);
        }
        /// <summary>
        /// 用户留言功能
        /// </summary>
        /// <param name="message">WLong.Model.CustomerMessage</param>
        /// <returns>bool</returns>
        public bool AddCustomerMessage(WLong.Model.CustomerMessage message)
        {
            return example.AddCustomerMessage(message);
        }
    }
}
